﻿
using RTW.DAL;
using RTW.OA.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace RTW.OA.Areas.System.Servers
{
    public class SealLogServers
    {
	    private readonly IRepository<seal_log> seal_logRepository;

        public SealLogServers()
        {
            seal_logRepository = new DapperRepository<seal_log>();

        }

        public List<seal_log> GetData()
        {
            return seal_logRepository.GetAllEnumerable().ToList();
        }

        public seal_log GetModelById(string id)
        {
            return seal_logRepository.GetById(id);
        }

		
        internal void Add(seal_log model)
        {
            seal_logRepository.Insert(model);
        }

        internal void Update(seal_log model)
        {
            seal_logRepository.Update(model);
        }

		internal void Del(string id)
        {
            seal_logRepository.DeleteByIds(id);
        }

	}
}